package com.example.blog.module.entity;

import lombok.Data;

@Data
public class PageParams {

    private Integer page;

    private Integer pageSize;

    private Long categoryId;

    private Long tagId;

    private String year;

    private String month;

    private Boolean isMe;

    private String search;

    //传递6的话变成06
    public String getMonth(){
        if (this.month != null && this.month.length() == 1){
            return "0"+this.month;
        }
        return this.month;
    }
}

